package com.scwatch.core.repository;

import com.scwatch.common.orm.Limitable;
import com.scwatch.core.domain.Invite;
import com.scwatch.core.repository.plus.InviteDaoPlus;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;

import java.util.Collection;
import java.util.List;

public interface InviteDao extends Repository<Invite,Integer>,InviteDaoPlus {

    Page<Invite> findAll(Specification<Invite> spec,
                         Pageable pageable);

    List<Invite> findAll(Specification<Invite> spec,
                             Limitable limitable);
    Invite save(Invite bean);

    Invite findOne(Integer id);

    void delete(Invite bean);

}
